package com.zjl.legendary.entity;

import java.util.Date;

/**
 * @author zhoujingluo
 * @date 2021/5/29 17:04
 */
public class UserTask {
    private Integer id;
    private Integer uid;
    private String title;
    private Integer nums;
    private Date ctime;
    private Integer flag;//标记位 1未完成，2已完成

    public UserTask() {
    }

    public UserTask(Integer uid, String title, Integer nums, Date ctime, Integer flag) {
        this.uid = uid;
        this.title = title;
        this.nums = nums;
        this.ctime = ctime;
        this.flag = flag;
    }

    public UserTask(Integer id, Integer uid, String title, Integer nums, Date ctime, Integer flag) {
        this.id = id;
        this.uid = uid;
        this.title = title;
        this.nums = nums;
        this.ctime = ctime;
        this.flag = flag;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getNums() {
        return nums;
    }

    public void setNums(Integer nums) {
        this.nums = nums;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "UserTask{" +
                "id=" + id +
                ", uid=" + uid +
                ", nums=" + nums +
                ", ctime=" + ctime +
                ", flag=" + flag +
                '}';
    }
}
